
<%@ page import="com.dbb.entity.order.Orders" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'orders.label', default: 'Orders')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-orders" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-orders" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list orders">
			
				<g:if test="${ordersInstance?.orderNum}">
				<li class="fieldcontain">
					<span id="orderNum-label" class="property-label"><g:message code="orders.orderNum.label" default="Order Num" /></span>
					
						<span class="property-value" aria-labelledby="orderNum-label"><g:fieldValue bean="${ordersInstance}" field="orderNum"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.customer}">
				<li class="fieldcontain">
					<span id="customer-label" class="property-label"><g:message code="orders.customer.label" default="Customer" /></span>
					
						<span class="property-value" aria-labelledby="customer-label"><g:link controller="company" action="show" id="${ordersInstance?.customer?.id}">${ordersInstance?.customer?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.deliveryDate}">
				<li class="fieldcontain">
					<span id="deliveryDate-label" class="property-label"><g:message code="orders.deliveryDate.label" default="Delivery Date" /></span>
					
						<span class="property-value" aria-labelledby="deliveryDate-label"><g:formatDate date="${ordersInstance?.deliveryDate}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.deliveryPlace}">
				<li class="fieldcontain">
					<span id="deliveryPlace-label" class="property-label"><g:message code="orders.deliveryPlace.label" default="Delivery Place" /></span>
					
						<span class="property-value" aria-labelledby="deliveryPlace-label"><g:fieldValue bean="${ordersInstance}" field="deliveryPlace"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.discrepancyAndClaim}">
				<li class="fieldcontain">
					<span id="discrepancyAndClaim-label" class="property-label"><g:message code="orders.discrepancyAndClaim.label" default="Discrepancy And Claim" /></span>
					
						<span class="property-value" aria-labelledby="discrepancyAndClaim-label"><g:fieldValue bean="${ordersInstance}" field="discrepancyAndClaim"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.inspection}">
				<li class="fieldcontain">
					<span id="inspection-label" class="property-label"><g:message code="orders.inspection.label" default="Inspection" /></span>
					
						<span class="property-value" aria-labelledby="inspection-label"><g:fieldValue bean="${ordersInstance}" field="inspection"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.items}">
				<li class="fieldcontain">
					<span id="items-label" class="property-label"><g:message code="orders.items.label" default="Items" /></span>
					
						<g:each in="${ordersInstance.items}" var="i">
						<span class="property-value" aria-labelledby="items-label"><g:link controller="orderItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.orderDate}">
				<li class="fieldcontain">
					<span id="orderDate-label" class="property-label"><g:message code="orders.orderDate.label" default="Order Date" /></span>
					
						<span class="property-value" aria-labelledby="orderDate-label"><g:formatDate date="${ordersInstance?.orderDate}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.orderRef}">
				<li class="fieldcontain">
					<span id="orderRef-label" class="property-label"><g:message code="orders.orderRef.label" default="Order Ref" /></span>
					
						<span class="property-value" aria-labelledby="orderRef-label"><g:fieldValue bean="${ordersInstance}" field="orderRef"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.payment}">
				<li class="fieldcontain">
					<span id="payment-label" class="property-label"><g:message code="orders.payment.label" default="Payment" /></span>
					
						<span class="property-value" aria-labelledby="payment-label"><g:fieldValue bean="${ordersInstance}" field="payment"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.productionDesc}">
				<li class="fieldcontain">
					<span id="productionDesc-label" class="property-label"><g:message code="orders.productionDesc.label" default="Production Desc" /></span>
					
						<span class="property-value" aria-labelledby="productionDesc-label"><g:fieldValue bean="${ordersInstance}" field="productionDesc"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="orders.status.label" default="Status" /></span>
					
						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${ordersInstance}" field="status"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.supplier}">
				<li class="fieldcontain">
					<span id="supplier-label" class="property-label"><g:message code="orders.supplier.label" default="Supplier" /></span>
					
						<span class="property-value" aria-labelledby="supplier-label"><g:link controller="company" action="show" id="${ordersInstance?.supplier?.id}">${ordersInstance?.supplier?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${ordersInstance?.type}">
				<li class="fieldcontain">
					<span id="type-label" class="property-label"><g:message code="orders.type.label" default="Type" /></span>
					
						<span class="property-value" aria-labelledby="type-label"><g:fieldValue bean="${ordersInstance}" field="type"/></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${ordersInstance?.id}" />
					<g:link class="edit" action="edit" id="${ordersInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
